package org.example.entity;

import java.math.BigDecimal;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhaowenting
 * @since 2024-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_cart")
public class TbCart implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 购物车id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    @ExcelProperty("订单号")
    private String orderNumber;

    /**
     * 商品id
     */
    @ExcelIgnore
    private Integer goodsId;

    /**
     * 购买的数量
     */
    @ExcelProperty("购买的数量")
    private Integer buyNum;

    /**
     * 单价
     */
    @ExcelProperty("单价")
    private BigDecimal price;

    /**
     * 用户id
     */
    @ExcelIgnore
    private Integer userId;


}
